<template>
	<view>
		<view class="goods-content">
			<image class="goods-img" :src="goodsItem.imgUrl" mode=""></image>
			<view class="goods-text">
				<view class="goods-name">{{goodsItem.name}}</view>
				<view class="goods-color" >颜色分类：{{goodsItem.color}}</view>
				<view class="goods-size" >尺码：{{goodsItem.size}}</view>
				<view class="f-active-color" style="font-size: 24rpx;">七天无理由退货</view>
			</view>
			<view class="">
				<view class="">￥{{goodsItem.price_new}}</view>
				<view class="f-color">*{{goodsItem.num}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			goodsItem:Object,
			goodsIndex:Number
		},
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style scoped>
.goods-content{
		padding: 10rpx 20rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		background-color: #f7f7f7;
	}
	.goods-text{
		/* width: 360rpx; */
		padding: 0 10rpx;
		font-size: 26rpx;
		/* background-color: #ffffff; */
	}
	.goods-name{
		width: 200px;   
		overflow: hidden;        /*内容会被修剪，并且其余内容是不可见的*/
		text-overflow:ellipsis;  /*显示省略符号来代表被修剪的文本。*/
		white-space: nowrap;     /*文本不换行*/
	}
	.goods-img{
		width: 160rpx;
		height: 160rpx;
	}
	.goods-size{
		font-size: 22rpx;
		color: #636263;
	}
	.goods-color{
		font-size: 22rpx;
		color: #636263;
	}
</style>
